<?php
/**
 * 左侧列表
 */
include (dirname(__FILE__)."/session.inc.php");//全局变量



$leftList=$db->get_all("SELECT `id`, `father`, `title`, `url`, `order_by`, `is_valid`, `is_show` FROM `{$tbprefix}nav` WHERE `father`='0' AND `is_show`='1' AND `is_valid`='1' AND 1");
foreach ($leftList as $key=>$value){
	$leftList[$key]['list']=$db->get_all("SELECT `id`, `father`, `title`, `url`, `order_by`, `is_valid`, `is_show` FROM `{$tbprefix}nav` WHERE `father`<>'0' AND `father`='{$value['id']}' AND `is_show`='1' AND `is_valid`='1' AND 1");
}
$smarty->assign("leftList",$leftList);

$smarty->assign("input_adminid",$input_adminid);
$smarty->assign("title",$cfg['sysName']);//系统名称
$smarty->assign("systemUser",$cfg['sysUser']);//授权
$smarty->display("left.tpl");
?>